import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SGuildUnion } from "./SGuildUnion";
type int = number;
//class SGuildRobCityOneScore
    
    export  class SGuildRobCityOneScore extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SGuildRobCityOneScore();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.severId);
            arg1.writeInt(this.proxyId);
            arg1.writeInt(this.guildId);
            arg1.writeString(this.guildName);
            arg1.writeInt(this.score);
            arg1.writeInt(this.leaderId);
            arg1.writeString(this.leaderName);
            this.guildUnion.__write(arg1);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.severId = arg1.readInt();
            this.proxyId = arg1.readInt();
            this.guildId = arg1.readInt();
            this.guildName = arg1.readString();
            this.score = arg1.readInt();
            this.leaderId = arg1.readInt();
            this.leaderName = arg1.readString();
            this.guildUnion = new SGuildUnion();
            this.guildUnion.__read(arg1);
            return;
        }

        public /* const */_type: int=741;

        public /* var */severId: int;

        public /* var */proxyId: int;

        public /* var */guildId: int;

        public /* var */guildName: string;

        public /* var */score: int;

        public /* var */leaderId: int;

        public /* var */leaderName: string;

        public /* var */guildUnion: SGuildUnion;

        public static /* var */_regist: SGuildRobCityOneScore;
    }

            SGuildRobCityOneScore._regist = new SGuildRobCityOneScore(true);
        